#ifndef QNETMAN2_H
#define QNETMAN2_H

#include <QDeclarativeView>
//#include <QtOpenGL/QGLWidget>

#include "qnmsettings.h"
#include "monitor.h"
#include "netstatext.h"
#include "options.h"
#include "qnmtranslation.h"

#include "wifidata.h"
#include "wifimonitor.h"

class QNetMan2 : public QDeclarativeView
{
    Q_OBJECT

    QNMSettings *qset;

    CfgMonitor *cfgMonitor;
    NetStatExt *netStat;
    QNMOptions *qnmSettings;
    QNMTranslation *qnmtransl;
    WiFiListData* cfgWiFiData;

    WiFiData *wifiData;

    void initMonitor();
    void initNetStat();
    void initSettings();
    void initTranslation();
    void initWiFiData();

    static QNetMan2* instance;

protected:

public:
    explicit QNetMan2(QNMSettings *__qset);
    ~QNetMan2();
    void initQNetMan2();
    Q_INVOKABLE void quitQNetMan();
    static QNetMan2* getInstance();

};


#endif // QNETMAN2_H
